package com.yingsheng.bi.hks.web.controller;

import com.yingsheng.bi.hks.comm.WxPayMpCreateOrderReq;
import com.yingsheng.bi.hks.comm.WxPayMpCreateOrderRes;
import com.yingsheng.bi.hks.feign.client.PaymentFeignClient;
import com.yingsheng.bi.hks.service.comm.WxPayBiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 支付模块
 *
 * @author root
 */
@RestController
public class PaymentCtrl implements PaymentFeignClient {

    @Autowired
    private WxPayBiService wxPayBiService;

    @Override
    public WxPayMpCreateOrderRes createOrder(WxPayMpCreateOrderReq req) {
        return wxPayBiService.createOrder(req);
    }

    @Override
    public String mqOrderNotice(HttpServletRequest request) {
        return wxPayBiService.mqOrderNotice(request);
    }

}
